﻿using System;
using LLoger;
using LimitatorInterfaces;
using LimitatorInterfaces.CorrectServices;

namespace CorrectServices
{
    public class GoCorrectionFactory : CorrectionServiceFactory
    {
        public override ICorrectionLimitService CreateCorrectionService(string configPath, ILogWriter logWriter)
        {
            ICorrectionParser parser = new GoCorrectionParser();
            ILoadProvider loader = new GoLoadProvider();
            ILimitCorrector corrector = new GoLimitCorrector();

            return new CorrectionLimitService(configPath,loader,parser,logWriter,corrector);
        }
    }
}